prepare("select * from salesmain where sales_date BETWEEN '$date1' and '$date2'") ; // $getd->execute() ; //get tsum /* $gsum = $DBcon->prepare("select sum(totalcost) as tcost from salesdetails where sales_id = '$id'") ; $gsum->execute() ; $grow = $gsum->fetch(pdo::FETCH_ASSOC) ; $tsum = $grow['tcost'] ; */ if(isset($_POST['search'])) { //$date1 = trim($_POST['date1']) ; //$date2 = trim($_POST['date2']) ; } ?> View Order Records Records

INVENTORY OUT DETAILS

INVENTORY DETAILS" ; ?> INVENTORY OUT RECORDS" .'Between'.'-'.$date1.'- and -'.$date2 ; ?>
prepare("select * from outmain where (dateout BETWEEN '$date1' and '$date2') and department ='$dept'") ; $getd->execute() ; } else { $getd = $DBcon->prepare("select * from outmain where dateout BETWEEN '$date1' and '$date2'") ; $getd->execute() ; } while($row = $getd->fetch(pdo::FETCH_ASSOC)) { //$tcost[] = $row['amount'] ; $sales[] = $row['inventout_id'] ; $salesdept[] = $row['department'] ; } ?> prepare("select * from outdetails where inventout_id = '$sid'") ; $gd->execute() ; $ct = 0 ; while($row1=$gd->fetch(pdo::FETCH_ASSOC)) { $ct++ ; $sd = $salesdept[$x] ; ?>
SN INVENTOUT ID CATEGORY ITEMS MEASURE QUANTITY